﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.Xml;

namespace IAM.Interface.Common
{
    public class XMlSign
    {
        public string SignXml(XmlDocument Doc)
        {
            SHA1CryptoServiceProvider ssp = new SHA1CryptoServiceProvider();
            byte[] bts = ssp.ComputeHash(System.Text.Encoding.Unicode.GetBytes(Doc.OuterXml));
            return System.Text.Encoding.Unicode.GetString(bts);

        }
    }
}
